﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BhvRotateAround : MonoBehaviour
{

    public Transform pivot;
    public Vector3 rotateAxis = new Vector3(0,0,0);
    public float speed = 0;
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        transform.RotateAround(pivot.position,rotateAxis,speed*Time.deltaTime);
    }
}
